Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dtc/develop: update logic around builddir (ccpp_prebuild.py) / basedir (metadata2html.py) #242

Merged
merged 1 commit into from
Nov 27, 2019

Conversation

climbfuji
Copy link
Collaborator

This PR updates the logic around the current command line arguments --builddir (for ccpp_prebuild.py) and --basedir (for metadata2html.py).

  • for ccpp_prebuild.py: use default value from the CCPP prebuild config (newly added) if not provided on the command line; this means that the default build is in-source, but by specifying --builddir an out-of-source build can be requested; this is also backward compatible with the current settings in UFS and SCM
  • for metadata2html.py: since it does not make sense to create the html tables from the CCPP metadata outside of the source directories (all accompanying doxygen files are in-source), always use the default value from the CCPP prebuild config, remove the command line argument entirely

With this change, it is possible to run metadata2html.py from the top-level ufs-weather-model directory as follows (for bulk conversions):

./FV3/ccpp/framework/scripts/metadata2html.py --config=FV3/ccpp/config/ccpp_prebuild_config.py

…nd basedir/builddir argument, use default value from CCPP prebuild config if not provided on the command line (ccpp_prebuild.py), always use default value from CCPP prebuild config (metadata2html.py)
@climbfuji climbfuji changed the title Update logic around builddir (ccpp_prebuild.py) / basedir (metadata2html.py) dtc/develop: update logic around builddir (ccpp_prebuild.py) / basedir (metadata2html.py) Nov 26, 2019
@climbfuji
Copy link
Collaborator Author

Associated PRs:

NCAR/ufs-weather-model#8
NCAR/fv3atm#10
NCAR/ccpp-physics#359
#242

For regression testing, see NCAR/ufs-weather-model#8

@climbfuji climbfuji marked this pull request as ready for review November 26, 2019 19:09
Copy link
Contributor

@llpcarson llpcarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@climbfuji climbfuji merged commit f7ae56d into NCAR:dtc/develop Nov 27, 2019
@climbfuji climbfuji deleted the default_builddir_from_config branch June 27, 2022 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants